
<div class="layui-form" id="usersedit" lay-filter="layuiadmin-form-useradmin" style="padding: 20px 0 0 0;">
  <div class="layui-form-item">
    <label class="layui-form-label">登录名</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="loginName" id="loginName" value="{{ d.params.LoginName || '' }}" lay-verify="required" placeholder="请输入用户名(不可修改)" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="password" name="pwd" id="pwd" value="{{ d.params.pwd || '' }}" lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="email" id="email" value="{{ d.params.ProtectEMail || '' }}" lay-verify="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">手机号码</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="mtel" id="mtel" value="{{ d.params.ProtectMTel || '' }}" lay-verify="required" placeholder="请输入手机号码" autocomplete="off" class="layui-input" >
      </script>
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">数据库密匙</label>
    <div class="layui-input-inline">
      <script type="text/html" template>
        <input type="text" name="token" id="token" value="69f84759-5242-488f-b98c-88b8e504dd95" lay-verify="required" placeholder="请输入数据库密匙" autocomplete="off" class="layui-input" >
      </script>
    </div>
  </div>
  <script type="text/html" template>
    <input type="hidden" name="Id" value="{{ d.params.Id || '' }}">
  </script>
  <script type="text/html" template>
    <input type="hidden" name="IsLockout" value="{{ d.params.IsLockout || '' }}">
  </script>
  <script type="text/html" template>
    <input type="hidden" name="LastLoginTime" value="{{ d.params.LastLoginTime || '' }}">
  </script>
  <script type="text/html" template>
    <input type="hidden" name="CreateTime" value="{{ d.params.CreateTime || '' }}">
  </script>
  <script type="text/html" template>
    <input type="hidden" name="PsdWrongTime" value="{{ d.params.PsdWrongTime || '' }}">
  </script>
  <script type="text/html" template>
    <input type="hidden" name="LockTime" value="{{ d.params.LockTime || '' }}">
  </script>
  <div class="layui-form-item">
    <label class="layui-form-label"></label>
    <div class="layui-input-inline">
      <input type="button" lay-submit lay-filter="LAY-user-front-submit" value="确认" class="layui-btn">
    </div>
  </div>
</div>

<script>
layui.use(['admin', 'form', 'upload'], function(){
  var $ = layui.$
  ,form = layui.form
  ,upload = layui.upload;
  
  //上传头像
  upload.render({
    elem: '#layuiadmin-upload-useradmin'
    ,url: './json/upload/demo.js'
    ,accept: 'images'
    ,method: 'get'
    ,acceptMime: 'image/*'
    ,done: function(res){
      $(this.item).prev("div").children("input").val(res.data.src)
    }
  });
})
</script>